#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <authentificqtion.h>

void authentification(char pass1[20],char pass2[20],char password[20],char log1[20],char log2[20],char login[20] )
{
     pass1[20]="0000";
     pass2[20]="0001";
   password[20]=" ";

log1[20]="mohamed";
log2[20]="raouf";
login[20]=" ";

    int n=3,i=1;

    do{
        printf("login : ");
        scanf("%s",login);
        printf("password : ");
        scanf("%s",password);

    if (((strcmp(log1,login)==0) && (strcmp(pass1,password)==0))||((strcmp(log2,login)==0) &&strcmp(pass2,password)==0)){
        printf("Bienvenue !!");
        break;
    }
    else {printf ("saisie incorrecte !! il vous reste %d essais \n u",n-i);
            i++;}
    }while (i<=n);



    return 0;
}
